struct  RequestFile {
    1:required string name,  //文件名字
}


struct  ResponseFile{
    1: required binary buf, //文件数据
}

struct RequestList{
    1:required string dirname, //文件目录
}

struct ResponseList{
    1:required list<string> allFiles, //所有的文件
}

service ControlService
{
    ResponseFile uploadFile(1:RequestFile filedata); // 文件解析函数
    ResponseList get_all_files(1: RequestList dir)
}

